import 'package:flutter/material.dart';
import 'package:flutter_boost/boost_navigator.dart';
import 'package:flutter_module/common/widget/video/video_player_dialog.dart';
import 'package:flutter_module/style/colors.dart';

/// Create by kyluzoi
/// Date: 2021-08-26
///
/// Description:

Map<String, FlutterBoostRouteFactory> dialogRouterTable = {
  DialogRouters.VIDEO_PLAYER_DIALOG: (settings, uniqueId) {
    return PageRouteBuilder<dynamic>(
        settings: settings,

        ///背景蒙版颜色
        barrierColor: ThemeColors.barrierColor,
        opaque: false,
        pageBuilder: (_, __, ___) {
          return VideoPlayerDialog(params: settings.arguments as Map);
        });
  },
};

// dialog routers
class DialogRouters {
  static const String VIDEO_PLAYER_DIALOG = "/video_player_dialog";
}
